home *** CD-ROM | disk | FTP | other *** search
- package com.ms.dxmedia;
-
- import com.ms.com.ComFailException;
- import com.ms.dxmedia.rawcom.DAVector2;
- import com.ms.dxmedia.rawcom.IDABehavior;
- import com.ms.dxmedia.rawcom.IDAVector2;
-
- public class Vector2Bvr extends Behavior {
- private IDAVector2 _COMptr;
-
- public Vector2Bvr normalize() {
- try {
- return new Vector2Bvr(this.getCOMPtr().Normalize());
- } catch (ComFailException var3) {
- throw StaticsBase.handleError(var3);
- }
- }
-
- public NumberBvr getX() {
- try {
- return new NumberBvr(this.getCOMPtr().getX());
- } catch (ComFailException var3) {
- throw StaticsBase.handleError(var3);
- }
- }
-
- public void setCOMBvr(IDABehavior var1) {
- super.setCOMBvr(var1);
- this._COMptr = (IDAVector2)var1;
- }
-
- public NumberBvr lengthSquared() {
- try {
- return new NumberBvr(this.getCOMPtr().getLengthSquared());
- } catch (ComFailException var3) {
- throw StaticsBase.handleError(var3);
- }
- }
-
- public static Vector2Bvr newUninitBvr() {
- return new Vector2Bvr(new DAVector2());
- }
-
- protected Behavior newUninitBehavior() {
- return newUninitBvr();
- }
-
- public NumberBvr getPolarCoordAngle() {
- try {
- return new NumberBvr(this.getCOMPtr().getPolarCoordAngle());
- } catch (ComFailException var3) {
- throw StaticsBase.handleError(var3);
- }
- }
-
- public NumberBvr getY() {
- try {
- return new NumberBvr(this.getCOMPtr().getY());
- } catch (ComFailException var3) {
- throw StaticsBase.handleError(var3);
- }
- }
-
- public IDAVector2 getCOMPtr() {
- return this._COMptr;
- }
-
- public Vector2Bvr transform(Transform2Bvr var1) {
- try {
- return new Vector2Bvr(this.getCOMPtr().Transform(var1.getCOMPtr()));
- } catch (ComFailException var4) {
- throw StaticsBase.handleError(var4);
- }
- }
-
- public Vector2Bvr(IDAVector2 var1) {
- super(var1);
- this._COMptr = var1;
- }
-
- public Vector2Bvr() {
- super((IDABehavior)null);
- this._COMptr = null;
- }
-
- public NumberBvr length() {
- try {
- return new NumberBvr(this.getCOMPtr().getLength());
- } catch (ComFailException var3) {
- throw StaticsBase.handleError(var3);
- }
- }
-
- public Vector2Bvr mul(NumberBvr var1) {
- try {
- return new Vector2Bvr(this.getCOMPtr().MulAnim(var1.getCOMPtr()));
- } catch (ComFailException var4) {
- throw StaticsBase.handleError(var4);
- }
- }
-
- public Vector2Bvr mul(double var1) {
- try {
- return new Vector2Bvr(this.getCOMPtr().Mul(var1));
- } catch (ComFailException var5) {
- throw StaticsBase.handleError(var5);
- }
- }
-
- public Vector2Bvr div(NumberBvr var1) {
- try {
- return new Vector2Bvr(this.getCOMPtr().DivAnim(var1.getCOMPtr()));
- } catch (ComFailException var4) {
- throw StaticsBase.handleError(var4);
- }
- }
-
- public Vector2Bvr div(double var1) {
- try {
- return new Vector2Bvr(this.getCOMPtr().Div(var1));
- } catch (ComFailException var5) {
- throw StaticsBase.handleError(var5);
- }
- }
-
- public NumberBvr getPolarCoordLength() {
- try {
- return new NumberBvr(this.getCOMPtr().getPolarCoordLength());
- } catch (ComFailException var3) {
- throw StaticsBase.handleError(var3);
- }
- }
- }
-